﻿using System;

class IntDoubleOrString
{
    static void Main()
    {/*Write a program that, depending on the user's choice inputs int,
      * double or string variable. If the variable is integer or double,
      * increases it with 1. If the variable is string, appends "*" at its end.
      * The program must show the value of that variable as a console output. Use switch statement.*/

        Console.Write("Enter your choice: int, double or string: ");        
        string variable =  Console.ReadLine();

        switch (variable)
        {               
            case "int":
                Console.WriteLine("Enter int variable");
                int integer = int.Parse(Console.ReadLine());
                Console.WriteLine("{0}", integer + 1);
                break;
            case "double":
                Console.WriteLine("Enter double variable");
                double doubl = double.Parse(Console.ReadLine());
                Console.WriteLine("{0}", doubl + 1);
                break;
            case "string":
                Console.WriteLine("Enter string variable");
                string str = Console.ReadLine();
                Console.WriteLine("{0}", str + "*");
                break;
            default:
                Console.WriteLine("Error!");
                break;
        }
    }
}

